const maintainRouter = {
    path:'maintain',
    rName:'维保管理',
    component:'maintain',
    children:[
        {
            path:'basic',
            rName:'基础管理',
            component:'maintain/basic',
            hasChild:true,
            children:[
                {
                    path:'staff',
                    rName:'人员信息',
                    component:'maintain/basic/staff',
                    isHidden:false
                },
                {
                    path:'staff/:staffName',
                    rName:'人员信息',
                    component:'maintain/basic/staffDetail',
                    isHidden:true
                },
                {
                    path:'job',
                    rName:'岗位信息',
                    component:'maintain/basic/job',
                    isHidden:false
                },
                {
                    path:'job/:jobName',
                    rName:'岗位信息',
                    component:'maintain/basic/job/jobDetail',
                    isHidden:true
                },
                {
                    path:'car',
                    rName:'车辆信息',
                    component:'maintain/basic/car',
                    isHidden:false
                },
                {
                    path:'car/:carName',
                    rName:'车辆信息',
                    component:'maintain/basic/car/carDetail',
                    isHidden:true
                },
                {
                    path:'route',
                    rName:'路线信息',
                    component:'maintain/basic/route',
                    isHidden:false
                },
                {
                    path:'route/:routeName',
                    rName:'路线信息',
                    component:'maintain/basic/route/routeDetail',
                    isHidden:true
                }
            ]
        },
        {
            path:'maintain',
            rName:'运维管理',
            component:'maintain/maintain',
            group:['保养作业管理','驾驶员作业'],
            hasChild:true,
            children:[
                {
                    path:'workorder',
                    rName:'维护工单',
                    component:'maintain/maintain/workorder',
                    groupName:'保养作业管理',
                    isHidden:false,
                },
                {
                    path:'taskassign',
                    rName:'任务分配',
                    component:'maintain/maintain/taskassign',
                    groupName:'保养作业管理',
                    isHidden:false,
                },
                {
                    path:'taskexec',
                    rName:'任务执行',
                    component:'maintain/maintain/taskexec',
                    groupName:'保养作业管理',
                    isHidden:false,
                },
                {
                    path:'taskcheck',
                    rName:'任务验收',
                    component:'maintain/maintain/taskcheck',
                    groupName:'保养作业管理',
                    isHidden:false,
                },
                {
                    path:'drivecheck',
                    rName:'驾驶员点检',
                    component:'maintain/maintain/drivecheck',
                    groupName:'驾驶员作业',
                    isHidden:false,
                },
                {
                    path:'runfeedback',
                    rName:'单次运行后反馈',
                    component:'maintain/maintain/runfeedback',
                    groupName:'驾驶员作业',
                    isHidden:false,
                }
            ]
        },
        {
            path:'repair',
            rName:'维修管理',
            component:'maintain/repair',
            hasChild:true,
            children:[
                {
                    path:'check',
                    rName:'登记核查',
                    component:'maintain/repair/check',
                    isHidden:false
                },
                {
                    path:'examine',
                    rName:'登记审查',
                    component:'maintain/repair/examine',
                    isHidden:false
                },
                {
                    path:'dispatch',
                    rName:'维修派工',
                    component:'maintain/repair/dispatch',
                    isHidden:false
                },
                {
                    path:'registry',
                    rName:'维修登记',
                    component:'maintain/repair/registry',
                    isHidden:false
                },
                {
                    path:'count',
                    rName:'维修统计',
                    component:'maintain/repair/count',
                    isHidden:false
                },
                {
                    path:'relief',
                    rName:'紧急救援维修',
                    component:'maintain/repair/relief',
                    isHidden:false
                }
            ]
        },
        {
            path:'parts',
            rName:'零配件管理',
            component:'maintain/parts',
            hasChild:true,
            children:[
                {
                    path:'inventory',
                    rName:'库存查询',
                    component:'maintain/parts/inventory',
                    isHidden:false,
                },
                {
                    path:'reception',
                    rName:'领用申请',
                    component:'maintain/parts/reception',
                    isHidden:false,
                },
                {
                    path:'change',
                    rName:'换件管理',
                    component:'maintain/parts/change',
                    isHidden:false,
                },
                {
                    path:'refund',
                    rName:'退件管理',
                    component:'maintain/parts/refund',
                    isHidden:false,
                },
            ]
        },
        {
            path:'notice',
            rName:'通知管理',
            component:'maintain/notice',
            hasChild:true,
            children:[
                {
                    path:'setting',
                    rName:'通知设置',
                    component:'maintain/notice/setting',
                    isHidden:false
                },
                {
                    path:'manage',
                    rName:'通知管理',
                    component:'maintain/notice/manage',
                    isHidden:false
                },
                {
                    path:'detail',
                    rName:'通知详情',   
                    component:'maintain/notice/detail',
                    isHidden:true
                }
            ]
        },
        {
            path:'knowledge',
            rName:'知识库管理',
            component:'maintain/knowledge',
            hasChild:true,
            children:[
                {
                    path:'experience',
                    rName:'经验库管理',
                    component:'maintain/knowledge/experience',
                    isHidden:false
                },
                {
                    path:'question',
                    rName:'问题库管理',
                    component:'maintain/knowledge/question',
                    isHidden:false
                },
                {
                    path:'data',
                    rName:'资料库管理',
                    component:'maintain/knowledge/data',
                    isHidden:false
                },
                {
                    path:'detail/:eid',
                    rName:'经验库详情',
                    component:'maintain/knowledge/detail',
                    isHidden:true
                }
            ]
        },
        {
            path:'analyze',
            rName:'智能分析管理',
            component:'maintain/analyze',
            hasChild:true,
            children:[
                {
                    path:'plan',
                    rName:'维修计划统计',
                    component:'maintain/analyze/plan',
                    isHidden:false
                },
                {
                    path:'workorder',
                    rName:'维修工单统计',
                    component:'maintain/analyze/workorder',
                    isHidden:false
                },
                {
                    path:'reason',
                    rName:'故障原因统计',
                    component:'maintain/analyze/reason',
                    isHidden:false
                },
                {
                    path:'spare',
                    rName:'备件消耗统计',
                    component:'maintain/analyze/spare',
                    isHidden:false
                },
            ]
        }
    ]
}

export default maintainRouter